import {HttpClient} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {Observable} from "rxjs/Observable";

@Injectable()
export class AddStaffProgressEditProvider {
    private url = '';

    constructor(public http: HttpClient) {

    }

    // 新建增员跟进
    postNewStaffProgress(progress):Observable<any>{
        return this.http.post(this.url,progress);
    }

    // 更新增员跟进
    pustStaffProgress(progress):Observable<any>{
        return this.http.put(this.url,progress);
    }

    // 删除增员跟进
    delStaffProgress(id):Observable<any>{
        return this.http.delete(this.url,id);
    }

}
